functions of an officer of state